﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RoleSkillEffectItem : EffectItemBase, IInitByInstruction
{
	protected string skillKeyName;
	protected string applyImage;
	protected override void EffectWithPlayer(RoleCtrl ctrl)
	{
		GamePlayFacade.Instance.Sub_Skill.AddSkill(ctrl, skillKeyName);
	}

	public void Init(BPInstruction instruction)
	{
		//Skill 关键字
		skillKeyName = instruction.Params[0];
		//当前 EffectItem的 应用图片
		applyImage = instruction.Params[1];
	}
}
